<?php
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}
require_once libfile('function/forum');
require_once libfile('function/forumlist');
$_type			= empty( $_GET['type'] ) ? 0 : intval( $_GET['type'] );
$_forumStone	= C::t('forum_forum')->fetch_all_by_fup( 57 );
$_forumStoneIds	= array();
foreach( $_forumStone as $_temp ){
	$_forumStoneIds[]	= $_temp['fid'];
}

$dataLs		= C::t( 'forum_thread' )->fetch_all_searchByPoll( array( 'inforum' => $_forumStoneIds, 'sticky' => 4, 'displayorder' => $_type, 'cover' => 1 ), 0, 7, 0, "`b`.`voterids`" );
echo '
<?xml version="1.0" encoding="utf-8"?>
<data>
	<channel>
';
foreach( $dataLs as $_id => $_temp ){
	$imgPath	= getthreadcover( $_temp['tid'], $_temp['cover'] );
	echo "<item>\n" .
		 "\t<link>forum.php?mod=viewthread&tid={$_temp['tid']}</link>\n".
		 "\t<image>{$imgPath}</image>\n".
		 "\t<title>{$_temp['subject']}</title>\n".
		 "</item>\n";
}

echo '
	</channel>
	<config>	
		<roundCorner>0</roundCorner>
		<autoPlayTime>8</autoPlayTime>
		<isHeightQuality>false</isHeightQuality>
		<blendMode>normal</blendMode>
		<transDuration>1</transDuration>
		<windowOpen>_self</windowOpen>
		<btnSetMargin>auto 5 5 auto</btnSetMargin>
		<btnDistance>20</btnDistance>
		<titleBgColor>0xff6600</titleBgColor>
		<titleTextColor>0xffffff</titleTextColor>
		<titleBgAlpha>.75</titleBgAlpha>
		<titleMoveDuration>1</titleMoveDuration>
		<btnAlpha>.7</btnAlpha>	
		<btnTextColor>0xffffff</btnTextColor>	
		<btnDefaultColor>0x1B3433</btnDefaultColor>
		<btnHoverColor>0xff9900</btnHoverColor>
		<btnFocusColor>0xff6600</btnFocusColor>
		<changImageMode>click</changImageMode>
		<isShowBtn>true</isShowBtn>
		<isShowTitle>true</isShowTitle>
		<scaleMode>noBorder</scaleMode>
		<transform>blur</transform>
		<isShowAbout>true</isShowAbout>
		<titleFont>微软雅黑</titleFont>
	</config>
</data>
';
?>